package com.xieh.webmagic.controller;

import com.xieh.webmagic.entity.UserTestEntity;
import com.xieh.webmagic.service.UserTestService;
import com.xieh.webmagic.service.impl.UserTestServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 谢辉
 * @Classname UserTestController
 * @Description TODO
 * @Date 2020/11/20 13:25
 */
@RestController
@RequestMapping("/test")
public class UserTestController {

    @Autowired
    private UserTestServiceImpl userTestService;

    @RequestMapping("/get")
    public List<UserTestEntity> get(){
        return userTestService.xiehGet();
    }
}
